<div  fwa-layout-container data-main="true" class="full-height full-width full-overflow-y">
	<div fwa-layout-box="north" class="" padding="true" style="height:310px;">
		<div class="full-height full-width background-white ">
			<div class="row title"  >
				<div class=" col-xs-8 " >
					<h5 >
						<b>基础信息</b>
					</h5>
				</div>
				<div class="col-xs-4 text-right" ng-show="UrlParams.providerid">
					<h5 >
						<a ng-click="queryChange();">变更记录>></a>
					</h5>
				</div>
			</div>
			<div class="row" style="margin-top: 10px;">
				<div class="form-group col-xs-4" >
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>机构名称:
					</div>
					<div class="col-xs-8">
						<input type="text" class="form-control" disabled="disabled" ng-blur="autoSearchInstitution($event)" required ng-model="institutionDetail.providerName" maxlength="60" >
					</div>
				</div>
				<div class="form-group col-xs-4" style="line-height: 34px;">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>机构编号:
					</div>
					<div class="col-xs-8">
						<input class="form-control" name = "orgCode"  disabled="disabled" ng-model="institutionDetail.providerCode"  type="text" maxlength="10">
					</div>
				</div>
				<div class="form-group col-xs-4" >
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>医院等级:
					</div>
					<div class="col-xs-8">
						<select ui-select2="{allowClear:true}" disabled="disabled" class="full-width"
						   ng-model="institutionDetail.hospitalLevel">
							<option value=""></option>
							<option ng-repeat="data in communityService.medicalOrgLevelDatas | filter : deleteCode"
										value="{{data.code}}">{{data.name}}</option>
						</select>
					</div>
				</div>
			</div>
			<div class="row" >
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>机构类别:
					</div>
					<div class="col-xs-8">
						<select ui-select2="{allowClear:true}" disabled="disabled" class="full-width"
						   ng-model="institutionDetail.organizationType">
							<option value=""></option>
							<option ng-repeat="data in communityService.medicalOrgTypeDatas | filter : deleteTypeCode"
										value="{{data.code}}">{{data.name}}</option>
						</select>
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>经营性质:
					</div>
					<div class="col-xs-8">
						<select class="form-control" name = "managementCode"   ng-model="institutionDetail.managementCode"
				                ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['classificationType']">
				            <option value="">---请选择---</option>
				     	 </select>
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<div class="row" style="padding-right: 6px;">
							<span class="red">* </span>组织机构代码:
						</div>
					</div>
					<div class="col-xs-8">
						<input class="form-control" name = "orgcode" disabled="disabled" ng-model="institutionDetail.organizationCode" type="text" maxlength="22">
					</div>
				</div>
			</div>
			<div class="row" >
				<div class="form-group col-xs-4" >
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>床位数:
					</div>
					<div class="col-xs-8">
						<input class="form-control" name = "bednum"  ng-model="institutionDetail.bednum" type="text" maxlength="10">
					</div>
				</div>
				
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>定点期限:
					</div>
					<div class="col-xs-8">
						<div class="col-xs-6" style="padding:0px;">
							<input disabled="disabled" ng-model="institutionDetail.pointStartdate" class="form-control" fwa-datetime ng-change="inputChange()">
						</div>
						<div class="col-xs-6" style="padding:0px;">
							<input disabled="disabled" ng-model="institutionDetail.pointEnddate" class="form-control" fwa-datetime ng-change="inputChange()">
						</div>
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>文件号:
					</div>
					<div class="col-xs-8">
						<input disabled="disabled" class="form-control" name = "orgcode"  ng-model="institutionDetail.fileNo" type="text" maxlength="19">
					</div>
				</div>

			</div>
			<div class="row" >
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>定点类别:
					</div>
					<div disabled="disabled" class="col-xs-8">
						<drop-down disabled="disabled"  code="codeno" text="codename" row="1" width="210"
						           result="institutionDetail.pointType1"
						           data="communityService.dictionaryMap['pointType']">
						</drop-down>
					</div>
				</div>
				 
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>开通业务:
					</div>
					<div disabled="disabled" class="col-xs-8">
						<drop-down disabled="disabled"  code="codeno" text="codename" row="1" width="210"
							result="institutionDetail.openBusiness1"
							data="communityService.dictionaryMap['openBusiness']">
						</drop-down>
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>法人代表:
					</div>
					<div class="col-xs-8">
						<input disabled="disabled" name = "lealPerson" class="form-control"  ng-model="institutionDetail.lealPerson"  type="text" maxlength="60">
					</div>
				</div>
			</div>
			<div class="row" >
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
					    <span class="red"> * </span>所在地区:
					</div>
					<div class="col-xs-8 " >
						<div class="col-xs-4" style="margin:0px 0px 0px -3px">
							<select  disabled="disabled" class="form-control" ng-model="institutionDetail.addressProvince"
							          ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['region']">
							<option value="">--省--</option>
							</select>
						</div>
						 <div class="col-xs-4 ">
							 <select  disabled="disabled" class="form-control" ng-model="institutionDetail.addressCity" dic="codeno|codename region"
							          dic-def-val="市" dic-affect="institutionDetail.addressProvince" dic-param="{codeNo:?,regionType:'2'}">
							<option value=""></option>
							</select>
						</div>
						<div class="col-xs-4 " style="padding:0px">
							<select disabled="disabled" class="form-control"  ng-model="institutionDetail.addressCounty" dic="codeno|codename region"
							         dic-def-val="区" dic-affect="institutionDetail.addressCity" dic-param="{codeNo:?,regionType:'3'}">
							<option value=""></option>
							</select>
						</div>
					</div>
				</div>
				<div class="form-group col-xs-8">
					<div style="width: 16%;float: left;" class="control-label text-right">
						<span class="red"> * </span>详细地址:
					</div>
					<div style="width: 84%;float: left;padding:0px 3px 0px 5px;">
						<input disabled="disabled" class="form-control" name = "addr"   ng-model="institutionDetail.fullAddress" type="text" maxlength="60">
					</div>
				</div>
			</div>
			<div class="row" >
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>医保负责人:
					</div>
					<div class="col-xs-8">
						<input class="form-control" name="contacts"   ng-model="relationDetail1.contacts" ng-maxlength="32" type="text">
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>手机:
					</div>
					<div class="col-xs-8">
						<input class="form-control" name="contacts"   ng-model="relationDetail1.moblie" ng-maxlength="32" type="text">
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>联系电话:
					</div>
					<div class="col-xs-8">
						<input type="text" class="form-control"  ng-model="relationDetail1.phone" ng-maxlength="60" >
					</div>
				</div>
			</div>
			<div class="row" >
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>医保联系人:
					</div>
					<div class="col-xs-8">
						<input disabled="disabled" class="form-control" name="contacts"   ng-model="relationDetail2.contacts" ng-maxlength="32" type="text">
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>手机:
					</div>
					<div class="col-xs-8">
						<input disabled="disabled" class="form-control" name="contacts"   ng-model="relationDetail2.moblie" ng-maxlength="32" type="text">
					</div>
				</div>
				<div class="form-group col-xs-4">
					<div class="col-xs-4 control-label text-right">
						<span class="red"> * </span>联系电话:
					</div>
					<div class="col-xs-8">
						<input disabled="disabled" type="text" class="form-control"   ng-model="relationDetail2.phone" ng-maxlength="60" >
					</div>
				</div>
			</div>
		</div>
	</div>
	<div fwa-layout-box="west" style="width:400px;min-height: 170px;" padding="true">
		<div fwa-layout-container class="background-white"  fwa-layout-fullsize="true" style="position: absolute;left: 8px;top:8px;right: 8px;bottom: 8px;">
			<div fwa-layout-box="north" class="background-white" style="height:34px;" >
				<div class="row title" >
					<div class="col-xs-12" >
						<h5>
						<b>执业信息</b>
						</h5>
					</div>
				</div>
			</div>
			<div fwa-layout-box="center" >
				<div class="full-height full-width background-white full-overflow-y" style="min-height: 10px;">
					<div class="row" style="margin-top: 10px;">
						<div class="form-group col-xs-12">
							<div class="control-label col-xs-4 text-right">
								<span class="red"> * </span>执业许可证:
							</div>
							<div class="col-xs-7">
								<input disabled="disabled" class="form-control" name = "license"   ng-model="institutionDetail.practiceLicense" type="text" maxlength="15">
							</div>
						</div>
					</div>
					<div class="row" >
						<div class="form-group col-xs-12">
							<div class="col-xs-4 control-label  text-right">
								<span class="red"> * </span>执业有效期:
							</div>
						<div  class="col-xs-7">
							<div class="col-xs-6" style="padding:0px;">
								<input ng-model="institutionDetail.startPeriod" class="form-control" fwa-datetime ng-change="inputChange()">
							</div>
							<div class="col-xs-6" style="padding:0px;">
								<input ng-model="institutionDetail.endPeriod" class="form-control" fwa-datetime ng-change="inputChange()">
							</div>
						</div>
						</div>
					</div>
					<div class="row" >
						<div class="form-group col-xs-12" >
							<div  class="control-label col-xs-4 text-right">
								<span class="red"> * </span>诊疗科目:
							</div>
							<div class="col-xs-7">
								<input class="form-control" title="{{institutionDetail.clinicalSubjects}}" name = "orgcode"  maxlength="60"  ng-model="institutionDetail.clinicalSubjects" type="text" >
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div fwa-layout-box="center" padding="true" class="full-overflow-y" style="min-height: 170px;">
		<div fwa-layout-container class="background-white"  fwa-layout-fullsize="true" style="position: absolute;left: 8px;top:8px;right: 8px;bottom: 8px;min-height: 20px;">
			<div fwa-layout-box="center" >
				<div class="full-height full-width ">
					<fwa-table  columns="columns" data-rows="tableData" data-check="true" check-rows="checkRows">
					</fwa-table>
				</div>
			</div>
		</div>
	</div>
	<div fwa-layout-box="south" style="height:150px;" padding="true">
	<div class="full-height full-width background-white">
		<div class="row title"  >
			<div class="form-group col-xs-12 " >
				<h5 >
					<b>
						其他信息
					</b>
				</h5>
			</div>
		</div>	
		<div class="row" >
			<div class="form-group col-xs-4">
				<div class="col-xs-4 control-label text-right">
					成立时间:
				</div>
				<div class="col-xs-8 control-label">
					<input ng-model="institutionDetail.dateRegtime" class="form-control" fwa-datetime picker-position='top-right' ng-change="inputChange()">
				</div>
			</div>
			<div class="form-group col-xs-4">
				<div class="col-xs-4 control-label text-right">
					经济类型:
				</div>
				<div class="col-xs-8">
					<select class="form-control" name = "economicType"  required ng-model="institutionDetail.economicType"
					                   ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['economicType']">
					<option value="">---请选择---</option>
					</select>
				</div>
			</div>
		<div class="form-group col-xs-4">
			<div class="col-xs-4 control-label text-right">
				<div class="row" style="padding-right: 6px;">
					注册资金(万元):
				</div>
			</div>
			<div class="col-xs-8">
				<input class="form-control" name="registerFund" ng-model="institutionDetail.registerFund"   type="text"  maxlength="13">
			</div>
		</div>
		</div>
		<div class="row" >
			<div class="form-group col-xs-4">
				<div class="col-xs-4 control-label text-right">
					邮政编码:
				</div>
				<div class="col-xs-8">
				 	<input class="form-control" name="contact" ng-model="institutionDetail.postcode" pattern='/^([0-9]{0,6})$/' maxlength="6" type="text">
				</div>
			</div>
			<div class="form-group col-xs-4">
				<div class="col-xs-4 control-label text-right">
					电子邮箱:
				</div>
				<div class="col-xs-8">
					<input class="form-control" name="mail" ng-model="institutionDetail.mail" maxlength="40" type="text">
				</div>
			</div>
			<div class="form-group col-xs-4">
				<div class="col-xs-4 control-label text-right">
					网站域名:
				</div>
				<div class="col-xs-8">
					<input class="form-control" name="domain" ng-model="institutionDetail.webDomain" maxlength="50" type="text">
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-12 text-center"  ng-show="authority.add != 1">
					<button type="button" class="btn btn-blue btn-sm" ng-click="cancel('0');">取消</button>
			</div>
			<div class="col-xs-12 text-center"  ng-show="authority.add == 1">
					<button type="button" class="btn btn-blue btn-sm" ng-click="cancel('0');">取消</button>
			</div>
		</div>
	</div>
</div>